/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cw.biz;

import cw.entity.PuzzleSize;
import cw.server.ServerConfig;
import cw.server.ServerInterface;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author VinhTC
 */
public class PuzzleSizeBiz {

    /**
     * this method use to get all PuzzleSize
     * @return-- List <PuzzleSize>
     */
    public List<PuzzleSize> getAllPuzzleSize() {
        try {
            List<PuzzleSize> lstPuzzleSize = new ArrayList<PuzzleSize>();
            ServerConfig sc = new ServerConfig();
            ServerInterface stub = sc.Setup();
            lstPuzzleSize = stub.getAllPuzzleSize();
            return lstPuzzleSize;

        } catch (Exception e) {
            return null;
        }
    }
}
